﻿using System.Threading.Tasks;
using SmartCity.Shared;
using Volo.Abp.Application.Services;

namespace ParkManagement
{
    /// <summary>
    /// 车辆应用服务接口
    /// </summary>
    public interface ICarAppService : IApplicationService
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="input"></param>
        Task<ActionResponse> CreateAsync(CreateCarDto input);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="input"></param>
        Task<ActionResponse> UpdateAsync(UpdateCarDto input);

        /// <summary>
        /// 我的
        /// </summary>
        /// <param name="request"></param>
        Task<ListResponse<CarDto>> MyAsync(PagedListRequest request);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        Task<ActionResponse> DeleteAsync(int id);
    }
}